function fourthWindowMaps(handles)
%  Display the maps for the 4th window analyses.
%   fourthWindowMaps(handles)
%
%   See also

% Author: gs
% Created: Dec 2006
% Copyright 2006
% -----------------------------------------------

% figure
hfig = figure('Color', 'w', 'DoubleBuffer', 'on', 'Units', 'normalized', ...
    'Position', [0.3244    0.3050    0.3500    0.6092], ...
    'Name', 'fourthWindowMaps');
if strcmp(handles.data.analysis.eventPolaritySyn, 'down')
    plotPolarityFactor = 1;
    colormap(flipud(colormap(jet2(256))));
elseif strcmp(handles.data.analysis.eventPolaritySyn, 'up')
    plotPolarityFactor = -1;
%     colormap(jet2(256));
    colormap(jet3(256));
end

% mean maps
map = handles.data.map.mapStack.mapAvgMean4th;
map(isnan(map)) = plotPolarityFactor * inf;
hsub = subplot(3,2,1);
imagesc(map);
daspect([1 1 1]);
colorbar;
title('Avg response MEAN');

% min maps
map = handles.data.map.mapStack.mapAvgMin4th;
map(isnan(map)) = plotPolarityFactor * inf;
hsub = subplot(3,2,3);
imagesc(map);
daspect([1 1 1]);
colorbar;
title('Avg response MIN');

% max maps
map = handles.data.map.mapStack.mapAvgMax4th;
map(isnan(map)) = plotPolarityFactor * inf;
hsub = subplot(3,2,5);
imagesc(map);
daspect([1 1 1]);
colorbar;
title('Avg response Max');
